package com.changer.common.vo.enums;

/**
 * Created by pangk on 2016/5/8.
 */
public enum ResponseStatus {
    SUCCESS(1000,"Success"),
    INTER_ERR(1001,"internal error"),
    INVALID_TOKEN(1002,"invalid token"),
    BAD_ACCESS(1003,"bad access"),
    INVALID_USER(1004,"invalid user or password"),
    INACTIVE_USER(1005,"user inactive"),
    INVALID_CHANNEL(1006,"invalid channel"),
    INVALID_MOBILE(1007,"invalid mobile"),
    INVALID_EMAIL(1008,"invalid email"),
    MANY_SMS_REQUEST(1009,"many sms request, only 5 times one day"),
    SMS_HAS_SENT(1010,"code has been sent,it will be valid in 10min"),
    USER_EXISTS(1011,"user exists"),
    MANY_MAIL_REQUEST(1012,"many email request"),
    MAIL_HAS_SENT(1013,"mail code has been sent,it will be valid in 10min"),
    INVALID_CODE(1014,"invalid code"),
    IMG_PROCESS_ERROR(1015,"image process error"),
    IMG_PROCESSING(1016,"image processing"),
    INVALID_USERNAME(1017,"invalid user name"),
    USER_NO_EXIST(1018,"user no exist"),
    OPERATION_TIME_OUT(1019,"operate time out"),
    IMG_NO_FOUND(1020,"image not found"),
    DEVICE_OCCUPIED(1021,"device is occupied"),
    DEVICE_USER_USING(1022,"user is in using this device"),
    HIGH_CODE_REQUEST(1023,"high-frequency requesting for verify code"),
    DEVICE_NO_EXIST(1024,"device is not exist"),
    DEVICE_NO_SAME_AREA(1025,"device is not in the same area"),
    DEVICE_NO_BINDING(1026,"device is not binding"),
    UNKNOWN_ERROR(1027,"unknown error"),
    CONNECT_NET_FAIL(1028,"connect to network failure"),
    NEW_OLD_PWD_CANNOT_EMP(1029,"the old and new password cannot be empty"),
    NEW_OLD_PWD_CANNOT_SAME(1030,"new password cannot be the same as the old password"),
    INVALID_ORI_PWD(1031,"invalid original password"),
    MOBILE_NO_BINDING(1032,"not binding mobile phone"),
    CODE_INVALID_EXPIRED(1033,"code incorrect or expired"),
    MOBILE_BINDING_USERS(1034,"mobile have binding other users"),
    EMAIL_BINDING_USERS(1035,"email have binding other users");

    private Integer code;
    private String status;

    ResponseStatus(Integer code,String status){
        this.code = code;
        this.status = status;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
